#include"TcpServer.hpp"

void DefaultOnMessage(shared_ptr<Connection> Connection_ptr)
{
    //这里进行协议定制
    cout<<"上层得到了消息"<<Connection_ptr->Inbuffer().c_str()<<endl;
}

int main()
{
    unique_ptr<TcpServer> epoll_svr(new TcpServer(8888, DefaultOnMessage));
    epoll_svr->Init();
    epoll_svr->Loop();
    return 0;
}